package dao;

import logic.FlightGroup;
import logic.Navigator;
import org.hibernate.Session;
import util.HibernateUtil;

import java.util.List;

public class FlightGroupDAOImpl {

    private Session sessionFactory;

    public void addFlightGroup(FlightGroup flightGroup) {
        sessionFactory = HibernateUtil.getSessionFactory().openSession();
        sessionFactory.beginTransaction();
        sessionFactory.save(flightGroup);
        sessionFactory.getTransaction().commit();
        sessionFactory.close();
    }
}
